<?php
defined('APPLICATION_PATH')
    || define('APPLICATION_PATH',
              realpath(dirname(__FILE__) . '/application'));

defined('APPLICATION_ENV')
    || define('APPLICATION_ENV',
              (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV')
                                         : 'developer'));

set_include_path(implode(PATH_SEPARATOR, array(
    dirname(__FILE__) . '/library',
	get_include_path(),
)));

define('PUBLIC_PATH', dirname(__FILE__) . '/public');
define('TEMPLATE_PATH', PUBLIC_PATH . '/templates');
define('FILE_PATH', PUBLIC_PATH . '/files');
define('LANGUAGES_PATH', APPLICATION_PATH . '/languages');
define('CACHE_PATH', APPLICATION_PATH . '/cache');
define('CONFIG_PATH', APPLICATION_PATH . '/configs');

define('SCRIPTS_PATH', PUBLIC_PATH . '/scripts');
define('JS_PATH', PUBLIC_PATH . '/js');
define('IMG_PATH', PUBLIC_PATH . '/img');

define('ROUTER', TRUE);

define('APPLICATION_URL', '/cms2014');
define('PUBLIC_URL', APPLICATION_URL . '/public');
define('TEMPLATE_URL', PUBLIC_URL . '/templates');

define('FILE_URL', PUBLIC_URL . '/files');
define('SCRIPTS_URL', PUBLIC_URL . '/scripts');
define('JS_URL', PUBLIC_URL . '/js');
define('IMG_URL', PUBLIC_URL . '/img');

define('APPLICATION_KEY','ss_' . md5($_SERVER['SCRIPT_FILENAME']));

define('APPLICATION_LANGUAGE_DEFAULT','en');
